#ifndef IDLETHREAD_H
#define IDLETHREAD_H

#include <QObject>
#include <QTableWidget>
#include <QThread>
#include "mbcommunication.h"

class idleThread : public QThread
{
    Q_OBJECT
public:
    idleThread(QTableWidget *tw, UINT16 *db);


    QList<InputConfigs *> *getInputs() const;
    void setInputs(QList<InputConfigs *> *value);

    QList<OutputConfigs *> *getOutputs() const;
    void setOutputs(QList<OutputConfigs *> *value);

private:
    QTableWidget *table;
    UINT16 *db;
    QList<InputConfigs *> *inputs;
    QList<OutputConfigs *> *outputs;

signals:
    void changeIcon(QListWidgetItem *listicon,QIcon icon);

    // QThread interface
protected:
    void run();
};

#endif // IDLETHREAD_H
